$(function(){
	$("#kanstudent").css("display","none");
		
		 function chakankan() {
			$("#kanstudent").css("display","block");
			return true;
		}
		/* $("#chakan").click(function(){
			 $("#kanstudent").css("display","block");
			 
		 }) ;*/
	 $("#close").click(function(){
		 $("#kanstudent").css("display","none");
		 
	 });
	 $("#.renshu").click(function(){
		 $("#kanstudent").css("display","block");
		 
	 });
})	;
function deletejob() {
		//获取所有选中
		var checkeds = $(".item-check:checked");
		if (checkeds.length && confirm("确认要删除所有选中行吗？")) {
			//获取所有选择的id
			var ids = [];
			checkeds.each(function() {
				ids.push(this.value);
			});
			///../teacher/student/delete?id=ids
			location.replace("deletejob?id="
					+ ids.join("&id="));
		}
	}
	
	
	function addposition() {
		var mo = $("#addposition")
		mo.modal('show');
	}

	
	function changeposition(positionId,positionName,description) {
		$("cid").val=positionId;
		$("cname").val=positionName;
		$("cdescript").val=description;
		var mo = $("#changeposition")
		mo.modal('show');
		/*$('#changeposition')
		  .modal({
		    closable  : false,
		    onDeny    : function(){
		      window.alert('Wait not yet!');
		      return false;
		    },
		    onApprove : function() {
		      window.alert('Approved!');
		    }
		  })
		  .modal('show');*/
		
	}
	
	